/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package doda2;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Shadownest
 */
public class Invoice implements Serializable
{
    private int invoiceNumber;
    private String customerName;
    private String travelAgencyName;
    private int holidayPackageID;
    private float price;
    private Date paiementDate;
    private boolean paid;

    public Invoice(int Number, String custName, String agencyName, int packID, float amount, Date date)
    {
        invoiceNumber = Number;
        customerName = custName;
        travelAgencyName = agencyName;
        holidayPackageID = packID;
        price = amount;
        paiementDate = date;
        paid = false;
    }
    
    public String getInvoiceInformation()
    {
        return "Invoice Number : " + String.valueOf(invoiceNumber) +
        "\nCustomer Name : " + customerName +
        "\nTravel Agency  : " + travelAgencyName +
        "\nHoliday Package ID : " + String.valueOf(holidayPackageID) +
        "\nPrice : " + String.valueOf(price) +
        "\nDue date : " + paiementDate.toString();
    }
    
    public int getInvoiceNumber()
    {
        return invoiceNumber;
    }
    
    public String getCustomerName()
    {
        return customerName;
    }
    
    public String getTravelAgencyName()
    {
        return travelAgencyName;
    }
    
    public int getHolidayPackageID()
    {
        return holidayPackageID;
    }
    
    public float getPrice()
    {
        return price;
    }
    
    public Date getPaiementDate()
    {
        return paiementDate;
    }
    
    public boolean isPaid()
    {
        return paid;
    }
    
    public void paiement()
    {
        paid = true;
    }
}
